<?php
$arrBanners[] = array('name'=>'Конкурс на BitByBit', 'img'=>'contest2.png', 'url'=>'http://bitbybit.ru/article/237/', 'box'=>false);
$arrBanners[] = array('name'=>'Dr.Web', 'img'=>'DrWeb.gif', 'url'=>'http://estore.drweb.com/?lng=ru', 'box'=>true);

foreach ($arrBanners as $banner){
	if ($banner['box']){
		$startBox = '<div class="roundBoxGrey banner"><div class="t"><div class="b"><div class="r"><div class="l"><div class="rt"><div class="lt"><div class="rb"><div class="lb">';
		$endBox = '</div></div></div></div></div></div></div></div></div>';
	}
	else {
		$startBox = '<div class="roundBoxGrey banner">';
		$endBox = '</div>';
	}
	
	echo $startBox;
		echo '<a target="_blink" href="' . $banner['url'] . '">';
			echo '<img src="' . W_IMAGES . 'banner/' . $banner['img'] . '" alt="' . $banner['name'] . '" />';
		echo '</a>';
	echo $endBox;
}

?>